﻿@model prjYan.Forum.Models.RegisterExternalLoginModel
@{
    ViewBag.Title = "Đăng ký tài khoản mới";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
    <h3>Liên kết đến tài khoản @ViewBag.ProviderDisplayName.</h3>
</hgroup>

@using (Html.BeginForm("ExternalLoginConfirmation", "Account", FormMethod.Post, new {@class = "form-horizontal", ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @*@Html.ValidationSummary(true)*@
    
    <div class="form-group">
        @Html.LabelFor(m => m.UserName, new { @class="col-sm-2"})
        <div class="col-sm-6">
            @Html.TextBoxFor(m => m.UserName, new { @class="form-control"})
            @Html.ValidationMessageFor(m => m.UserName)
            @Html.HiddenFor(m => m.ExternalLoginData)
        </div>
    </div>
    
    <div class="form-group">
        @Html.LabelFor(m => m.Email, new { @class="col-sm-2"})
        <div class="col-sm-6">
            @Html.TextBoxFor(m => m.Email, new { @class="form-control", @readonly="readonly"})
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.FullName , new { @class="col-sm-2"})
        <div class="col-sm-6">
            @Html.TextBoxFor(m => m.FullName, new { @class="form-control"})
        </div>
    </div>
    
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">Đăng ký</button>
        </div>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
